<div class="view">

	<a href="view/<?php echo $data->id;?>">

<?php 
	$photo = Utils::getPlayerPhoto($data);
?>

	<table> <tr> <td>
		<?php echo CHtml::image(Utils::findImageUrl($photo[0]->filename),$data->name,array('width'=>100,'height'=>60)); ?>
	</td><td><h3 align="center" style="min-width:400px; color: black; text-shadow: 3px 3px #000; "> <?php echo $data->name;?></h3></td> 
	
<?php if(strtoupper($data->status) == strtoupper("EM APROVAÇÃO")) {
	echo '<td><h5 align="right" style="color:orange;">'.$data->status.'</h5></td>';
} ?>
	</tr> </table>
	
	
	<table style="color:black">
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('federation_id')); ?>:</td>
	<td><?php echo CHtml::encode($data->federation_id); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</td>
	<td><?php echo CHtml::encode($data->name); ?></td>
	</tr>
	<tr>
	<td><?php echo 'Time'; ?>:</td>
	<td <?php if($data->category->team->owner_id == $_SESSION['owner']->id) { echo "style='color: green;'"; } ?>><?php echo CHtml::encode($data->category->team->name); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('natural_country')); ?>:</td>
	<td><?php echo CHtml::encode($data->natural_country); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('natural_state')); ?>:</td>
	<td><?php echo CHtml::encode($data->natural_state); ?></td>
	</tr>
	<tr>
	<td><?php echo CHtml::encode($data->getAttributeLabel('natural_city')); ?>:</td>
	<td><?php echo CHtml::encode($data->natural_city); ?></td>
	</tr>

	<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('nickname')); ?>:</b>
	<?php echo CHtml::encode($data->nickname); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('birthy_date')); ?>:</b>
	<?php echo CHtml::encode($data->birthy_date); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('gender')); ?>:</b>
	<?php echo CHtml::encode($data->gender); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('father_name')); ?>:</b>
	<?php echo CHtml::encode($data->father_name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('mother_name')); ?>:</b>
	<?php echo CHtml::encode($data->mother_name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('email')); ?>:</b>
	<?php echo CHtml::encode($data->email); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('address')); ?>:</b>
	<?php echo CHtml::encode($data->address); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('neightborhood')); ?>:</b>
	<?php echo CHtml::encode($data->neightborhood); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('state')); ?>:</b>
	<?php echo CHtml::encode($data->state); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('city')); ?>:</b>
	<?php echo CHtml::encode($data->city); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('cert_birthy')); ?>:</b>
	<?php echo CHtml::encode($data->cert_birthy); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('rg')); ?>:</b>
	<?php echo CHtml::encode($data->rg); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('emissor')); ?>:</b>
	<?php echo CHtml::encode($data->emissor); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('doc_validate')); ?>:</b>
	<?php echo CHtml::encode($data->doc_validate); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('cpf')); ?>:</b>
	<?php echo CHtml::encode($data->cpf); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ctps')); ?>:</b>
	<?php echo CHtml::encode($data->ctps); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('cnh')); ?>:</b>
	<?php echo CHtml::encode($data->cnh); ?>
	<br />

	*/ ?>
	</table>
	</a>
</div>